@use "../global/variables";

.catalog__wrapper-container {
  margin-bottom: 44px;
  padding-top: 49px;
  text-align: center;
}

.catalog__form {
  margin-bottom: 41px;
}

.catalog__wrapper {
  display: flex;
  justify-content: space-between;
}

.catalog__list {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 20px;
  margin-bottom: 40px;
}

.catalog__countries {
  margin-bottom: 35px;
}

.catalog__subtitle {
  font-weight: 700;
  font-size: 24px;
  line-height: 36px;
  color: variables.$base-black;
  margin: 0 0 20px;
}

.catalog__head {
  margin-bottom: 5px;
}

.catalog__button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;

  &--submit {
    margin-bottom: 25px;
  }
}

@media (min-width: variables.$min-tablet-width) {
  .catalog__wrapper-container {
    margin-bottom: 90px;
  }

  .catalog__form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 42px;
    text-align: left;
    margin-bottom: 44px;
  }

  .catalog__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .catalog__subtitle {
    font-weight: 700;
    font-size: 42px;
    line-height: 64px;
  }

  .catalog__price {
    padding-right: 14px;
  }

  .catalog__milk {
    padding-left: 6px;
  }

  .catalog__countries {
    margin-bottom: 0;
    padding-left: 12px;
  }

  .catalog__button {
    margin: 0;

    &--submit {
      padding: 8px 3px;
      font-size: 14px;
      line-height: 24px;
    }

    &--reset {
      padding: 8px 6px;
    }
  }

  .catalog__button-container {
    display: flex;
    grid-column: 1 / 4;
    grid-gap: 30px;
    justify-content: center;
    align-items: center;
    padding-right: 53px;
  }

  .catalog__list {
    display: grid;
    grid-gap: 30px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 70px;
    text-align: left;
    align-items: center;
  }
}

@media (min-width: variables.$min-desktop-width) {
  .catalog__wrapper-container {
    display: grid;
    grid-template-columns: 318px 1fr;
    margin-bottom: 118px;
    padding-top: 100px;
  }

  .catalog__subtitle,
  .catalog__head {
    grid-column: 1 / 3;
  }

  .catalog__head {
    margin-bottom: 40px;
  }

  .catalog__list {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 60px;
    margin-left: 30px;
  }

  .catalog__form {
    display: flex;
    flex-direction: column;
    grid-row: 3 / 6;
    row-gap: 0;
  }

  .catalog__price {
    margin-bottom: 28px;
    padding-right: 0;
  }

  .catalog__milk {
    margin-bottom: 7px;
    padding-left: 0;
  }

  .catalog__countries {
    margin-bottom: 40px;
    padding-left: 0;
  }

  .catalog__button-container {
    padding-right: 0;
  }
}
